package user.model;

/**
 * PhotoinforId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class PhotoinforId implements java.io.Serializable {

	// Fields

	private Integer id;
	private String title;
	private String description;
	private String datetime;
	private Integer picId;

	// Constructors

	/** default constructor */
	public PhotoinforId() {
	}

	/** full constructor */
	public PhotoinforId(Integer id, String title, String description,
			String datetime, Integer picId) {
		this.id = id;
		this.title = title;
		this.description = description;
		this.datetime = datetime;
		this.picId = picId;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDatetime() {
		return this.datetime;
	}

	public void setDatetime(String datetime) {
		this.datetime = datetime;
	}

	public Integer getPicId() {
		return this.picId;
	}

	public void setPicId(Integer picId) {
		this.picId = picId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof PhotoinforId))
			return false;
		PhotoinforId castOther = (PhotoinforId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getTitle() == castOther.getTitle()) || (this
						.getTitle() != null
						&& castOther.getTitle() != null && this.getTitle()
						.equals(castOther.getTitle())))
				&& ((this.getDescription() == castOther.getDescription()) || (this
						.getDescription() != null
						&& castOther.getDescription() != null && this
						.getDescription().equals(castOther.getDescription())))
				&& ((this.getDatetime() == castOther.getDatetime()) || (this
						.getDatetime() != null
						&& castOther.getDatetime() != null && this
						.getDatetime().equals(castOther.getDatetime())))
				&& ((this.getPicId() == castOther.getPicId()) || (this
						.getPicId() != null
						&& castOther.getPicId() != null && this.getPicId()
						.equals(castOther.getPicId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getTitle() == null ? 0 : this.getTitle().hashCode());
		result = 37
				* result
				+ (getDescription() == null ? 0 : this.getDescription()
						.hashCode());
		result = 37 * result
				+ (getDatetime() == null ? 0 : this.getDatetime().hashCode());
		result = 37 * result
				+ (getPicId() == null ? 0 : this.getPicId().hashCode());
		return result;
	}

}